History log of /trafficserver/proxy/hdrs/MIME.h (Results 1 - 25 of 136)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 8236813e 14-Jan-2020 Fei Deng

TLSv1.3 0-RTT support (#5450)

* TLSv1.3 0-RTT support
TLSv1.3 0-RTT test
TLSv1.3 0-RTT anti-replay
TLSv1.3 0-RTT h2


Revision tags: 8.0.5, 7.1.8, 8.0.4, 7.1.7, 7.1.7-rc0, 8.0.4-rc0
# 482e30ac 19-Apr-2019 Masakazu Kitajo

Destroy MIMEFieldBlockImpl that doesn't have fields in use

Because MIMEFieldBlocks are destroyed only when MIMEHdr is destroyed, the block
chain never be short. With this change, a block

Destroy MIMEFieldBlockImpl that doesn't have fields in use

Because MIMEFieldBlocks are destroyed only when MIMEHdr is destroyed, the block
chain never be short. With this change, a block will be destroyed when all fields
in a block are deleted, and the block will be removed from a block chain.

show more ...


# 702c6ac7 02-Oct-2019 Sudheer Vinukonda

Fix use-after-free problem related to logging headers

mime_header_value_set() has a coalesce logic to coalesce dead allocations
in the header heap and in the process can free up previous

Fix use-after-free problem related to logging headers

mime_header_value_set() has a coalesce logic to coalesce dead allocations
in the header heap and in the process can free up previously allocated
strings that Logging references (cquuc etc). When logging tries to
access those fields subsequently it results in a use-after-free
(caught using ASAN build). In the wipe field logging use case, there
isn't a need to recreate new header heaps, just need to replace the
fields with wiped values. So, added a new utility function to simply overwrite
the fields. The fix has been retested with ASAN and looks good on prod host.

show more ...


# 92a912e2 05-Aug-2019 Alan M. Carroll

Issue 5604 - fix memory leaks for http parser.


# 9772eb68 26-Jul-2019 Sudheer Vinukonda

Add soft limit for HTTP Request URI and Header field length.
Add a default body_factory template when rejecting a request that's too long

Add the soft limit check for MIME header field n

Add soft limit for HTTP Request URI and Header field length.
Add a default body_factory template when rejecting a request that's too long

Add the soft limit check for MIME header field name as well
And some code cleanup

Fix the default error response body

Fix build failure

Add unit tests

Add docs for the new settings

Adjust the header field size control to include header name and value,
to better align with the RFC definition

Fix build error

Simplify the header field size check inline with the config setting

Fix the condition to match the docs accurately

Fix the condition to match the docs accurately

add new body_factory template to Makefile.am

Fix format typo in Makefile

dummy commit to trigger build which still seems to pick old file

Yet another dummy commit to trigger build

Address more review comments

show more ...


# 9b567e4e 01-Apr-2019 Walter Karas

Add optional normalization of scheme and host to lower case letters in effective URLs.

- Adds new TS API function TSHttpHdrEffectiveUrlBuffGet() (which also puts the URL in a user-allocated

Add optional normalization of scheme and host to lower case letters in effective URLs.

- Adds new TS API function TSHttpHdrEffectiveUrlBuffGet() (which also puts the URL in a user-allocated buffer).
- Adds 'normalized' parameter (defaults to false) to HTTPHdr::url_string_get().
- Adds 'normalized' parameter (defaults to false) to url_print(), url_string_get(), url_string_get_ref().
- Adds 'normalized' parameter (defaults to false) to URL::string_get(), URL::string_get_ref(), URL::print().

This will make it possible to check URLs output by these functions for equivalence by doing a simple string compare.

show more ...


# af308e54 26-Mar-2019 Leif Hedstrom

Ran CPP check on a few files while prodding around

Another example of some of the changes it recommends, I think
it would be useful to try to work on getting us CPPCheck "free".


# 4621f36e 26-Mar-2019 Leif Hedstrom

Don't allow header values to overflow into negative values

For example, CC: max-age=2147483648 will turn into a negative values
and hence, can not be served out of cache. Since this par

Don't allow header values to overflow into negative values

For example, CC: max-age=2147483648 will turn into a negative values
and hence, can not be served out of cache. Since this parser deals with
proper negative value, it seems reasonable to clamp this to INT_MAX.

This fixes several issue from the cache-tests harness.

show more ...


# 7651e269 19-Mar-2019 Masaori Koshiba

Ran clang-tidy with modernize-use-default-member-init

1. Remove unmatched #endif and set `_location` nullptr.
- iocore/eventsystem/I_IOBuffer.h
- iocore/eventsystem/P_IOBuffer.h

Ran clang-tidy with modernize-use-default-member-init

1. Remove unmatched #endif and set `_location` nullptr.
- iocore/eventsystem/I_IOBuffer.h
- iocore/eventsystem/P_IOBuffer.h

2. Include "ts/apidefs.h"
- include/tscpp/api/Stat.h

3. Rollback changes made with -fix-error option (clang-diagnostic-implicit-function-declaration)
- plugins/lua/ts_lua_client_request.c
- plugins/lua/ts_lua_client_response.c
- plugins/lua/ts_lua_server_response.c
- plugins/experimental/remap_stats/remap_stats.c

show more ...


Revision tags: 8.0.3
# 0be4e732 06-Feb-2019 Alan M. Carroll

MIMEScanner: Make MIMEScanner a class, not a POD with free functions.


Revision tags: 7.1.6
# f4944ee4 17-Jan-2019 Alan M. Carroll

MIME: Update MIMEField::name_get and MIMEField::value_get to return string_view.


Revision tags: 8.0.2, 8.0.1, 7.1.5
# 0bba409e 07-Nov-2018 Alan M. Carroll

MIME: Add string_view based overload for value_get.


Revision tags: 7.1.5-rc0, 8.0.1-rc0, 8.0.0, 8.0.0-rc3, 8.0.0-rc2, 8.0.0-rc1, 8.0.0-rc0
# 079a4027 30-Aug-2018 Susan Hinrichs

PR #3724: Restructure library headers to unify include paths.


Revision tags: 7.1.4, 6.2.3, 7.1.4-rc0
# 65cb2261 04-Jun-2018 Randall Meyer

Removes old commented-out code


# d01fa15a 06-Jun-2018 Alan M. Carroll

Change MIMEHdr::value_append_or_set to handle duplicate headers (always add to last duplicate).


# c29e2916 25-Apr-2018 Leif Hedstrom

Updated to new version of clang-format


# b5037ade 11-Apr-2018 Bryan Call

Ran clang-tidy with modernize-use-nullptr


# b82d0aaf 11-Apr-2018 Masakazu Kitajo

Use #pragma once


Revision tags: 7.1.3, 7.1.2, 7.1.2-rc3, 7.1.2-rc2, 7.1.2-rc1, 7.1.2-rc0, 7.1.1, 7.1.1-rc0
# d91662da 04-Aug-2017 Walt Karas

Add support for Forwarded HTTP header tag (RFC7239).


Revision tags: 6.2.2, 6.2.2-rc0, 7.1.0, 7.1.0-rc0
# de2dcd45 05-Jun-2017 Laurence Bordowitz

Noncopyable update for C++11


# edeb6e4f 10-May-2017 Leif Hedstrom

Coverity issues in HTTP

This fixes:
CID 1021698
CID 1021697
CID 1022105
CID 1021696


# a23df669 03-May-2017 scw00 <616955249@qq.com>

convert int to boolean


# 74b2abec 20-Apr-2017 Masakazu Kitajo

Add --enable-mime-sanity-check option


Revision tags: 6.2.1
# 3145e459 12-Nov-2016 Bryan Call

TS-1228: Support new Forwarded standard

Code cleanup before implementation


Revision tags: 7.0.0, 7.0.0-rc2
# cdd7957b 26-Oct-2016 David Calavera

TS-4855: Make `const char` consistent accross the project.

Signed-off-by: David Calavera <david.calavera@gmail.com>


123456