Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to better handle CGI variables with unicode, and keep REQUEST_URI percent encoded. #136

Merged
merged 11 commits into from
Dec 2, 2014

Conversation

jocelyn
Copy link
Member

@jocelyn jocelyn commented Jul 1, 2014

No description provided.

This is mainly a kind of echo server .. that return the request information.
…tions:

- PATH_INFO is percent decoded but still utf-8 encoded,
  this is available via WGI.path_info and WSF_REQUEST.utf_8_path_info.
- Added WSF_REQUEST.percent_encoded_path_info
- and WSF_REQUEST.path_info remains the unicode value for PATH_INFO

Added cgi_variables: WGI_REQUEST_CGI_VARIABLES to have a simple and quick view on CGI variables
Added execution_variables to be able to iterate on execution variables.
Added PERCENT_ENCODER.percent_decoded_utf_8_string
Improved the WSF_DEBUG_HANDLER to provide more information thanks to WSF_DEBUG_INFORMATION object.
…hat CGI variables are utf-8 encoded, and sometime percent encoded).

Delayed computation of `value' and `name' from WSF_STRING.
Fixed computation of REQUEST_URI when the server does not provide it (this is rare, but possible).
   compute it as SERVER_NAME + encoded-PATH_INFO + {? + QUERY_STRING}
@jocelyn
Copy link
Member Author

jocelyn commented Jul 7, 2014

Any more comments on this pull request?
If anyone is opposed to merge it, please express soon.
Otherwise I will probably merge this pull request before the end of this week.

@jocelyn
Copy link
Member Author

jocelyn commented Nov 17, 2014

So if there is really no more comment on it, I will commit accordingly the previous comments.

@jocelyn jocelyn merged commit ff19adc into EiffelWebFramework:master Dec 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants