# Invalid pseudo headers?

**URL:** <https://forums.swift.org/t/invalid-pseudo-headers/67957>\
**Category:** SwiftNIO\
**Created:** [October 19, 2023, 10:51pm UTC](https://forums.swift.org/t/invalid-pseudo-headers/67957 "2023-10-19T22:51:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![taylorswift](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/taylorswift/32/43413_2.png) [@taylorswift](https://forums.swift.org/u/taylorswift)\
**Post date:** [October 19, 2023, 10:51pm UTC](https://forums.swift.org/t/invalid-pseudo-headers/67957/1 "2023-10-19T22:51:33Z")

</div>

i am trying to interact with the AWS [S3 API](https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-header-based-auth.html). sadly, it is not going too well, as i cannot even construct an [`HPACKHeaders`](https://swiftinit.org/docs/swift-nio-http2/niohpack/hpackheaders) instance to make this request:

```swift
let headers:HPACKHeaders =
[
    ":method": "PUT",
    ":path": path,
    ":authority": "\(bucket).s3.amazonaws.com",

    "authorization": authorization,

    "date": date,
    "host": "\(bucket).s3.amazonaws.com",
    "x-amz-content-sha256": "\(hash)",
    "x-amz-date": "\(timestamp.yyyymmddThhmmssZ)",
    "x-amz-storage-class": "REDUCED_REDUNDANCY",
]

```

i am catching an [`InvalidPseudoHeaders`](https://swiftinit.org/docs/swift-nio-http2/niohttp2/niohttp2errors/invalidpseudoheaders) error. what am i doing wrong?

---

<div class="post-metadata">

**Author:** ![taylorswift](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/taylorswift/32/43413_2.png) [@taylorswift](https://forums.swift.org/u/taylorswift)\
**Post date:** [October 20, 2023, 2:41am UTC](https://forums.swift.org/t/invalid-pseudo-headers/67957/2 "2023-10-20T02:41:42Z")

</div>

as it turns out, i was missing the `[":scheme": "https"]` header. wow!
