[Corona] Adding HTTP Header request

Review Request #402 — Created Jan. 8, 2016 and submitted

smillernl
Lunr
personal/sean/http_header_request
1c5d4c3...
lunr

Corona: Adding HTTP Header request

use get_http_header_data('X-Custom-Header'); to get the $_SERVER['HTTP_X_CUSTOM_HEADER']; value



tardypad
  1. Ship It!
  2. 
      
pprkut
  1. I don't get it. What's the use case?

    1. allowing to request a header as it would be send to the server. In the case of contentful the X-Contentful-Topic header instead of finding HTTP_X_CONTENTFUL_TOPIC in the server variable.

      Tl;dr easier programming

    2. The way I see it it's get_server_data('HTTP_X_CONTENTFUL_TOPIC') vs get_http_header_data('X-Contentful-Topic'). And I seriously don't see what's easier in the second one.

  2. 
      
pprkut
  1. Ship It!
  2. 
      
smillernl
Review request changed

Status: Closed (submitted)

Change Summary:

Merged into master

Loading...