Skip to content

Conversation

@greggroth
Copy link
Contributor

I ran into an unexpected behavior when the getSelectValue respond body was including a search body:

[1] pry(#<NetSuite::Actions::GetSelectValue>)> @response.body
=> {:search_response=>
  {:search_result=>
    {:status=>{:@is_success=>"true"},
     :total_records=>"1",
     :page_size=>"1000",
     :total_pages=>"1",
     :page_index=>"1",
     :search_id=>"WEBSERVICES_3868171_1023201410570198521023020047_dc09b6504f2",
     :record_list=>
#...

I realized that Search is mutating the auth headers when it uses update.

There's no need to mutate the auth headers in place since they're being
set to a new variable `preferences`.
@iloveitaly
Copy link
Member

Thanks! Merged with 030d2c8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants