Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: LayoutTests/http/tests/resources/dpr.php

Issue 46313002: Support the DPR header for client hints. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <?php
2 $name = $_GET['name'];
3 $mimeType = $_GET['mimeType'];
4 $dpr = $_GET['dpr'];
5
6 $file = fopen($name, "rb");
7 if (!$file)
8 die("Cannot open file.");
9
10 header("Content-Type: " . $mimeType);
11 header("Content-Length: " . filesize($name));
12 header("DPR: ". $dpr);
pdr. 2013/10/26 01:26:31 Should the header name be "DPR" or "CH-DPR"? I th
pdr 2013/10/27 21:04:39 For posterity, I was just mixed up here. DPR is th
13
14 echo(fread($file, filesize($name)));
15 flush();
16 ob_flush();
17 fclose($file);
18 ?>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698