@deotio/mcp-sigv4-proxy 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/proxy.js +6 -1
- package/package.json +1 -1
package/dist/proxy.js
CHANGED
|
@@ -112,10 +112,15 @@ export function parseInputLine(line) {
|
|
|
112
112
|
}
|
|
113
113
|
// --- Request building ---
|
|
114
114
|
export function buildHttpRequest(url, body) {
|
|
115
|
+
const query = {};
|
|
116
|
+
url.searchParams.forEach((value, key) => {
|
|
117
|
+
query[key] = value;
|
|
118
|
+
});
|
|
115
119
|
return new HttpRequest({
|
|
116
120
|
method: 'POST',
|
|
117
121
|
hostname: url.hostname,
|
|
118
|
-
path: url.pathname
|
|
122
|
+
path: url.pathname,
|
|
123
|
+
...(Object.keys(query).length > 0 && { query }),
|
|
119
124
|
headers: {
|
|
120
125
|
'Content-Type': 'application/json',
|
|
121
126
|
'Content-Length': String(Buffer.byteLength(body)),
|
package/package.json
CHANGED