[PR #487] [MERGED] Split header debugging onto multiple lines for easier reading #1520

Closed
opened 2026-03-04 02:00:51 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/487
Author: @driskell
Created: 10/22/2016
Status: Merged
Merged: 10/23/2016
Merged by: @ggtakec

Base: masterHead: debugging


📝 Commits (1)

  • 02d7296 Split header debugging onto multiple lines for easier reading

📊 Changes

1 file changed (+34 additions, -11 deletions)

View changed files

📝 src/curl.cpp (+34 -11)

📄 Description

When -ocurldbg is on you get some weird messy output like:

> GET / HTTP/1.1#015#012User-Agent: s3fs/1.80 (commit hash unknown; OpenSSL)#015#012Accept: */*#015#012Authorization: AWS4-HMAC-SHA256 Credential=xxx, SignedHeaders=host;x-amz-ontent-sha256;x-amz-date, Signature=xxx#015#012host: xxx.s3.amazonaws.com#015#012x-amz-content-sha256: xxx#015#012x-amz-date: xxx#015#012#015

This PR changes it so it looks like this:

> GET / HTTP/1.1
> User-Agent: s3fs/1.80 (commit hash unknown; OpenSSL)
> Accept: */*
> Authorization: AWS4-HMAC-SHA256 Credential=xxx, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=xxx
> host: xxx.s3.amazonaws.com
> x-amz-content-sha256: xxx
> x-amz-date: xxx
> 

It might also be a bit faster as it doesn't require any allocation.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/s3fs-fuse/s3fs-fuse/pull/487 **Author:** [@driskell](https://github.com/driskell) **Created:** 10/22/2016 **Status:** ✅ Merged **Merged:** 10/23/2016 **Merged by:** [@ggtakec](https://github.com/ggtakec) **Base:** `master` ← **Head:** `debugging` --- ### 📝 Commits (1) - [`02d7296`](https://github.com/s3fs-fuse/s3fs-fuse/commit/02d72962100249c98e79f7bfc9179886275be3ec) Split header debugging onto multiple lines for easier reading ### 📊 Changes **1 file changed** (+34 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `src/curl.cpp` (+34 -11) </details> ### 📄 Description When `-ocurldbg` is on you get some weird messy output like: ``` > GET / HTTP/1.1#015#012User-Agent: s3fs/1.80 (commit hash unknown; OpenSSL)#015#012Accept: */*#015#012Authorization: AWS4-HMAC-SHA256 Credential=xxx, SignedHeaders=host;x-amz-ontent-sha256;x-amz-date, Signature=xxx#015#012host: xxx.s3.amazonaws.com#015#012x-amz-content-sha256: xxx#015#012x-amz-date: xxx#015#012#015 ``` This PR changes it so it looks like this: ``` > GET / HTTP/1.1 > User-Agent: s3fs/1.80 (commit hash unknown; OpenSSL) > Accept: */* > Authorization: AWS4-HMAC-SHA256 Credential=xxx, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=xxx > host: xxx.s3.amazonaws.com > x-amz-content-sha256: xxx > x-amz-date: xxx > ``` It might also be a bit faster as it doesn't require any allocation. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 02:00:51 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#1520
No description provided.