Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[lyo-dev] Why add If-Match twice?

I'm working with the org.eclipse.lyo.client.java.sample package (to try to troubleshoot my OSLC4NET problems) and had a question. In the DoorsOauthSample.java file, I can get a DOORS requirement just fine, and manipulate it as intended. When I modify a requirement, it calls OslcOAuthClient:updateResource. Inside that function is the line:

return restClient.resource(url).contentType(mediaType).accept(acceptType).header("Authorization",authHeader).header(HttpHeaders.IF_MATCH, ifMatch).header(OSLCConstants.OSLC_CORE_VERSION,"2.0").header(HttpHeaders.IF_MATCH, ifMatch).put(artifact);


Why is the IF_MATCH header set twice?

--
-bob

I'm at a complete loss for...um... those things that are made out
of letters and assembled into sentences.
**********************************************************************
*      Robert Kerr  SSPS Developer and CUBIT Support Manager         *
*      rakerr@xxxxxxxxxx          |    PO Box 5800,  MS 0125         *
*      Phone: (505) 844-8606      |    Sandia National Labs          *
*       Fax: (505) 844-2018       |  Albuquerque, NM 87185-0125      *
**********************************************************************



Back to the top