mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 12:06:37 +00:00
@ -141,7 +141,7 @@ func invokeService(w http.ResponseWriter, r *http.Request, metrics metrics.Metri
|
||||
contentType := r.Header.Get("Content-Type")
|
||||
fmt.Printf("[%s] Forwarding request [%s] to: %s\n", stamp, contentType, url)
|
||||
|
||||
request, err := http.NewRequest("POST", url, bytes.NewReader(requestBody))
|
||||
request, err := http.NewRequest(r.Method, url, bytes.NewReader(requestBody))
|
||||
|
||||
copyHeaders(&request.Header, &r.Header)
|
||||
|
||||
|
Reference in New Issue
Block a user