Skip to content

HTTP Upload headers not used #274

@Zash

Description

@Zash
  • yaxim 0.9.9a-4-g e27e415
  • XEP-0363 implementation utilizing <header>
C:
<iq to='share.example.net' id='y6mO8-120' type='get'>
  <request xmlns='urn:xmpp:http:upload:0' filename='IMG_20210129_012916.jpg' size='199871' content-type='image/jpeg'/>
</iq>

S:
<iq id="y6mO8-120" to="zash@example.net/yaxim.859C45FD" type="result" from="share.example.net">
  <slot xmlns="urn:xmpp:http:upload:0">
    <get url="https://share.example.net/file_share/o35x3G_omPCeWzZw/IMG_20210129_012916.jpg"/>
    <put url="https://share.example.net/file_share/o35x3G_omPCeWzZw/IMG_20210129_012916.jpg">
      <header name="Authorization">Bearer u3y6RZrNvRAkgKZT_Yge</header>
    </put>
  </slot>
</iq>

On upload the HTTP PUT request is missing the Authorization header.

Support for headers is mandatory

[...] the client MUST include all allowed headers that came with the slot assignment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendxeprelated to implementing a XEP

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions