forwardemail / forwardemail/superagent

Does POST function support http2?

Open
#1,618 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
16.6k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

Hello, I saw plenty of examples in different tickets on how to enable http2 support in GET requests (https://github.com/visionmedia/superagent/pull/1399#issuecomment-409544917), but I could not find any examples of enabling it in POST requests.

I've set the http2 property to true
`superagent.http2 = true;
superagent
.post(ajaxUrl +
"?module=" +.....`
However, whenever I look at my nginx access logs, the POST request is showing as http1.1. Is there any explanation for why running the same code in the browser reports http2, but running it in a node process shows as http 1.1? Thanks in advance

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.