Skip to content

Instantly share code, notes, and snippets.

@postwait
Created March 6, 2013 16:59
Show Gist options
  • Select an option

  • Save postwait/5100913 to your computer and use it in GitHub Desktop.

Select an option

Save postwait/5100913 to your computer and use it in GitHub Desktop.
diff --git a/src/noit_rest.c b/src/noit_rest.c
index d10bbac..9e1b6f8 100644
--- a/src/noit_rest.c
+++ b/src/noit_rest.c
@@ -106,9 +106,7 @@ noit_http_get_handler(noit_http_rest_closure_t *restc) {
const char *uri_str;
const char *eoq, *eob;
uri_str = noit_http_request_uri_str(req);
- eoq = strchr(uri_str, '?');
- if(!eoq)
- eoq = uri_str + strlen(uri_str);
+ eoq = uri_str + strlen(uri_str);
eob = eoq - 1;
/* find the right base */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment