Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Conversation

@kc284
Copy link

@kc284 kc284 commented Aug 24, 2021

No description provided.

Comment on lines 272 to 275
var responseProperties = TypeDescriptor.GetProperties(webRequest);
var responseSb = new StringBuilder("*** WebResponse Properties:\n");
foreach (PropertyDescriptor prop in responseProperties)
responseSb.AppendFormat("{0} {1}={2}\n", prop.PropertyType, prop.Name, prop.GetValue(webRequest));
Copy link
Member

@danilo-delbusso danilo-delbusso Aug 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're using TypeDescriptor.GetProperties with webRequest, but trying to list properties of the web response. This will create an almost identical string between responseSb and requestSb.

Not sure this was on purpose.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More like a stupid copy-paste error... 😵

@kc284 kc284 merged commit 3bd5633 into xapi-project:XSI-1039 Sep 1, 2021
@kc284 kc284 deleted the XSI-1039 branch September 1, 2021 08:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants