Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
cujanovic committed Aug 1, 2017
1 parent 65bd9c5 commit d05c5db
Show file tree
Hide file tree
Showing 19 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions custom-200/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
header("HTTP/1.1 200 OK");
header("Content-Location: ".$_GET["url"]);
header("Content-Type:".base64_decode($_GET["content-type"]));
header("Cache-Control: no-cache");
echo base64_decode($_GET[body]);
1 change: 1 addition & 0 deletions custom-201/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
header("HTTP/1.1 201 Created");
header("Location: ".$_GET["url"]);
header("Content-Type:".base64_decode($_GET["content-type"]));
header("Cache-Control: no-cache");
echo base64_decode($_GET[body]);
1 change: 1 addition & 0 deletions custom-30x/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
header("HTTP/1.1 ".$_GET["code"]." Found");
header("Location: ".$_GET["url"]);
header("Content-Type:".base64_decode($_GET["content-type"]));
header("Cache-Control: no-cache");
echo base64_decode($_GET[body]);
2 changes: 2 additions & 0 deletions htaccess/csv-with-body-md/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ RewriteRule 308-([^/-]*)-(.*).c.csv$ $1://169.254.169.254/$2 [L,R=308,NC]

# Always set the Content-Type header text/csv
Header always set Content-Type text/csv
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
2 changes: 2 additions & 0 deletions htaccess/csv-with-body/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).c.csv$ $1://$2/$3 [L,R=308,NC]

# Always set the Content-Type header text/csv
Header always set Content-Type text/csv
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
2 changes: 2 additions & 0 deletions htaccess/csv-without-body-md/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ RewriteRule 308-([^/-]*)-(.*).c.csv$ $1://169.254.169.254/$2 [L,R=308,NC]

# Always set the Content-Type header text/html
Header always set Content-Type text/html
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
2 changes: 2 additions & 0 deletions htaccess/csv-without-body/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).c.csv$ $1://$2/$3 [L,R=308,NC]

# Always set the Content-Type header text/html
Header always set Content-Type text/html
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
2 changes: 2 additions & 0 deletions htaccess/img-with-body-md/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ RewriteRule 308-([^/-]*)-(.*).i.jpg$ $1://169.254.169.254/$2 [L,R=308,NC]

# Always set the Content-Type header image/jpeg
Header always set Content-Type image/jpeg
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
2 changes: 2 additions & 0 deletions htaccess/img-with-body/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).i.jpg$ $1://$2/$3 [L,R=308,NC]

# Always set the Content-Type header image/jpeg
Header always set Content-Type image/jpeg
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
2 changes: 2 additions & 0 deletions htaccess/img-without-body-md/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ RewriteRule 308-([^/-]*)-(.*).i.jpg$ $1://169.254.169.254/$2 [L,R=308,NC]

# Always set the Content-Type header text/html
Header always set Content-Type text/html
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
2 changes: 2 additions & 0 deletions htaccess/img-without-body/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).i.jpg$ $1://$2/$3 [L,R=308,NC]

# Always set the Content-Type header text/html
Header always set Content-Type text/html
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
2 changes: 2 additions & 0 deletions htaccess/json-with-body-md/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ RewriteRule 308-([^/-]*)-(.*).j.json$ $1://169.254.169.254/$2 [L,R=308,NC]

# Always set the Content-Type header application/json
Header always set Content-Type application/json
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
2 changes: 2 additions & 0 deletions htaccess/json-with-body/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).j.json$ $1://$2/$3 [L,R=308,NC]

# Always set the Content-Type header application/json
Header always set Content-Type application/json
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
2 changes: 2 additions & 0 deletions htaccess/json-without-body-md/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ RewriteRule 308-([^/-]*)-(.*).j.json$ $1://169.254.169.254/$2 [L,R=308,NC]

# Always set the Content-Type header text/html
Header always set Content-Type text/html
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
2 changes: 2 additions & 0 deletions htaccess/json-without-body/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).j.json$ $1://$2/$3 [L,R=308,NC]

# Always set the Content-Type header text/html
Header always set Content-Type text/html
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
2 changes: 2 additions & 0 deletions htaccess/xml-with-body-md/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ RewriteRule 308-([^/-]*)-(.*).x.xml$ $1://169.254.169.254/$2 [L,R=308,NC]

# Always set the Content-Type header text/xml
Header always set Content-Type text/xml
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
2 changes: 2 additions & 0 deletions htaccess/xml-with-body/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).x.xml$ $1://$2/$3 [L,R=308,NC]

# Always set the Content-Type header text/xml
Header always set Content-Type text/xml
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
2 changes: 2 additions & 0 deletions htaccess/xml-without-body-md/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ RewriteRule 308-([^/-]*)-(.*).x.xml$ $1://169.254.169.254/$2 [L,R=308,NC]

# Always set the Content-Type header text/html
Header always set Content-Type text/html
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
2 changes: 2 additions & 0 deletions htaccess/xml-without-body/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).x.xml$ $1://$2/$3 [L,R=308,NC]

# Always set the Content-Type header text/html
Header always set Content-Type text/html
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache

0 comments on commit d05c5db

Please sign in to comment.