| 930 | string output; |
| 931 | |
| 932 | foreachpair (const string& key, const string& value, query) { |
| 933 | output += http::encode(key); |
| 934 | if (!value.empty()) { |
| 935 | output += "=" + http::encode(value); |
| 936 | } |
| 937 | output += '&'; |
| 938 | } |
| 939 | return strings::remove(output, "&", strings::SUFFIX); |
| 940 | } |
| 941 |