Skip to content
Browse files

fix for the failing tests introduced in the preceeding commits

  • Loading branch information...
1 parent 648c4e0 commit 2b56abea0b7620b23a8225cd6051cdbeba580114 @kazuho committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 XS.xs
View
1 XS.xs
@@ -186,6 +186,7 @@ CODE:
hv_store(env, "REQUEST_URI", sizeof("REQUEST_URI") - 1,
newSVpvn(path, path_len), 0);
hv_store(env, "SCRIPT_NAME", sizeof("SCRIPT_NAME") - 1, newSVpvn("", 0), 0);
+ path_len = find_ch(path, path_len, '#'); /* strip off all text after # after storing request_uri */
question_at = find_ch(path, path_len, '?');
if (store_url_decoded(env, "PATH_INFO", sizeof("PATH_INFO") - 1, path,
question_at)

0 comments on commit 2b56abe

Please sign in to comment.
Something went wrong with that request. Please try again.