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

added creating qs from request body functionality + updated doc #442

Merged
merged 3 commits into from
May 23, 2022

Conversation

The-EDev
Copy link
Member

closes #438

@The-EDev The-EDev marked this pull request as draft May 20, 2022 20:14
@crow-clang-format
Copy link

--- include/crow/query_string.h	(before formatting)
+++ include/crow/query_string.h	(after formatting)
@@ -23,7 +23,7 @@
  *  Also decodes the value portion of the k/v pair *in-place*.  In a future
  *  enhancement it will also have a compile-time option of sorting qs_kv
  *  alphabetically by key.  */
-int qs_parse(char * qs, char * qs_kv[], int qs_kv_size, bool parse_url);
+int qs_parse(char* qs, char* qs_kv[], int qs_kv_size, bool parse_url);
 
 
 /*  Used by qs_parse to decode the value portion of a k/v pair  */
@@ -97,7 +97,7 @@
 }
 
 
-inline int qs_parse(char * qs, char * qs_kv[], int qs_kv_size, bool parse_url = true)
+inline int qs_parse(char* qs, char* qs_kv[], int qs_kv_size, bool parse_url = true)
 {
     int i, j;
     char * substr_ptr;
@@ -333,8 +333,8 @@
         }
 
 
-        query_string(std::string params, bool url = true)
-            : url_(std::move(params))
+        query_string(std::string params, bool url = true):
+          url_(std::move(params))
         {
             if (url_.empty())
                 return;

@The-EDev The-EDev marked this pull request as ready for review May 21, 2022 09:51
@crow-clang-format
Copy link

--- include/crow/query_string.h	(before formatting)
+++ include/crow/query_string.h	(after formatting)
@@ -23,7 +23,7 @@
  *  Also decodes the value portion of the k/v pair *in-place*.  In a future
  *  enhancement it will also have a compile-time option of sorting qs_kv
  *  alphabetically by key.  */
-int qs_parse(char * qs, char * qs_kv[], int qs_kv_size, bool parse_url);
+int qs_parse(char* qs, char* qs_kv[], int qs_kv_size, bool parse_url);
 
 
 /*  Used by qs_parse to decode the value portion of a k/v pair  */

@The-EDev The-EDev merged commit c897101 into master May 23, 2022
@The-EDev The-EDev deleted the qs-from-req branch May 23, 2022 06:32
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.

Handle HTML POST forms (application/x-www-form-urlencoded) more nicely
2 participants