Skip to content

The same Header exists in HttpContentHeaders and HttpResponseHeaders in a request #17491

@zhenlei520

Description

@zhenlei520

Description

I don't know if this is a bug, but I think it's not normal. I accidentally discovered that HttpContentHeaders and HttpResponseHeaders contain the same information when using vs2022 to develop ios clients using xamarin.

2b78a335105e4d4a7721de762fecd53
0fd6ea30df6f5b57eb8c3db8753e046

This problem has not always existed. It appeared after updating the preview version of vs2022 and the corresponding ios-related SDK. There was no such problem before.

Steps to Reproduce

Create a .NET Maui APP.
Create a iOS Binding project

  1. Install Aliyun.OSS.SDK.NetCore package version to 2.13.0
  2. Refer to [this demo](https://github.com/aliyun/aliyun-oss-csharp-sdk/blob/master/samples/Samples/PutObjectSample.cs?spm=a2c4g.11186623.0.0.2992cb3672Qfqr&file=PutObjectSample.cs# L109) Write a method for uploading pictures and execute it on the ios side

If you feel that the second step is troublesome, you can also try to build an API service by yourself. The response status code of the API is 200, and the returned response header contains x-oss-hash-crc64ecma and other headers to try. We have not done this kind of test for the time being. Not sure if this will work

Version with bug

IDE Version:

Microsoft Visual Studio Enterprise 2022
Version 17.5.0 Preview 6.0
VisualStudio.17.Preview/17.5.0-pre.6.0+33402.96
Microsoft .NET Framework
Version 4.8.09032
Xamarin 17.5.0.172 (d17-5@2a1a1bf)
Xamarin Designer 17.5.3.46 (remotes/origin/d17-5@e4dd80b2bb)
Xamarin.Android SDK 13.2.0.0 (d17-5/797e2e1)
Xamarin.Android Reference Assemblies
VisualStudio.Mac 1.0
Mac Extension for Visual Studio

SDK Version: 7.0.200-preview.22628.1

Last version that worked well

Unknown/Other

Affected platforms
iOS

Affected platform versions

iOS 15.7.1 .NET 7

Did you find any workaround?

Versions prior to Microsoft Visual Studio Enterprise 2022 preview4 do not have such issues,But in my opinion it should be related to the corresponding xamarin version, not directly related to the Visual Studio Enterprise version

Relevant log output
No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions