Skip to content

Commit

Permalink
allow unsupported frame type
Browse files Browse the repository at this point in the history
  • Loading branch information
marty1885 committed Nov 11, 2023
1 parent 9247211 commit 74cc7ca
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
5 changes: 0 additions & 5 deletions lib/src/Http2Transport.cc
Original file line number Diff line number Diff line change
Expand Up @@ -699,11 +699,6 @@ static trantor::MsgBuffer serializeFrame(const H2Frame &frame, int32_t streamId)
ok = f.serialize(buffer, flags);
type = (uint8_t)H2FrameType::RstStream;
}
else
{
LOG_ERROR << "Unsupported frame type";
abort();
}

if (!ok)
{
Expand Down
23 changes: 14 additions & 9 deletions lib/src/HttpRequestImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ class HttpRequestImpl : public HttpRequest
return loop_;
}

// [[deprcated("Now version is controlled by the HttpClient. Calling
// setVersion() will have no effect.")]]
void setVersion(Version v)
{
version_ = v;
Expand Down Expand Up @@ -169,9 +171,10 @@ class HttpRequestImpl : public HttpRequest
pathEncode_ = pathEncode;
}

const std::
unordered_map<std::string, std::string, utils::internal::SafeStringHash>
&parameters() const override
const std::unordered_map<std::string,
std::string,
utils::internal::SafeStringHash> &
parameters() const override
{
parseParametersOnce();
return parameters_;
Expand Down Expand Up @@ -341,16 +344,18 @@ class HttpRequestImpl : public HttpRequest
return defaultVal;
}

const std::
unordered_map<std::string, std::string, utils::internal::SafeStringHash>
&headers() const override
const std::unordered_map<std::string,
std::string,
utils::internal::SafeStringHash> &
headers() const override
{
return headers_;
}

const std::
unordered_map<std::string, std::string, utils::internal::SafeStringHash>
&cookies() const override
const std::unordered_map<std::string,
std::string,
utils::internal::SafeStringHash> &
cookies() const override
{
return cookies_;
}
Expand Down

0 comments on commit 74cc7ca

Please sign in to comment.